<?php

namespace App\Console\Commands\OpenShop\Order;


use App\Enums\OpenShop\InvestmentPromotion\SignOrderEnum;
use App\Service\OpenShop\OrderService;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Console\Command;
use Illuminate\Validation\ValidationException;

class CloseTimeOutOrderCommand extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'openShop:noPayOrderTimeOutToClose';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'openShop:超时未支付作废订单';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }
    
    public function handle()
    {
        $res = OrderService::noPayTimeOutToClose();
        $this->info('操作完成'.$res);
    }


}
